import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import user from './modules/user'
import permission from './modules/permission'
import products from './modules/products'
import sales from './modules/sales'
import inventory from './modules/inventory'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user,
    permission,
    products,
    sales,
    inventory
  },
  getters
})

export default store 